import App from './App'
import http from '@/utils/http'
import api from '@/api/index'
import store from '@/store/index'
import storage from '@/utils/storage'
import functions from "@/utils/functions";



// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.prototype.$http = http
Vue.prototype.$api = api
Vue.prototype.$store = store
Vue.prototype.$storage = storage
Vue.prototype.$functions = functions;


// 引入全局uView
import uView from  '@/uni_modules/uview-ui';
Vue.use(uView);


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif